Skip to content

fix decodeOp modifying the whole opcode value#63

Merged
TheGreatSageEqualToHeaven merged 1 commit intorce-incorporated:mainfrom
goofyclown:main
Mar 8, 2026
Merged

fix decodeOp modifying the whole opcode value#63
TheGreatSageEqualToHeaven merged 1 commit intorce-incorporated:mainfrom
goofyclown:main

Conversation

@goofyclown
Copy link
Contributor

decodeOp was modifying the whole opcode word instead of just calling it for the opcode "id"
this made my inst.D have incredibly weird values which well errored in fiu

fix found from https://github.com/shrimp-nz/medal/blob/main/luau-lifter/src/instruction.rs#L118
(only apply the encode key for the opcode and not the whole "instruction")

(i do not know have the luau bytecode technical terms)

Copy link

@greengrassstudios greengrassstudios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a pretty critical issue, and this is the proper implementation.

@TheGreatSageEqualToHeaven TheGreatSageEqualToHeaven merged commit 0acebac into rce-incorporated:main Mar 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants